<?php

require_once 'config.php';
require_once ADODB_DIR.'adodb.inc.php';     

$db =& ADONewConnection(DB_TYPE); 
$db->Connect(DB_HOST,DB_USERNAME,DB_PASSWORD,DB_DATABASE);     

foreach($db->GetCol("SHOW TABLES") as $table) {
  $rs = $db->Execute("REPAIR TABLE $table QUICK");
  echo "$rs\n";
}

?>
